import axios from './network'
// 获取收款表列表
function receiptMoneyTable(){
  return axios({
    url:'mobileadmin/receipt_money_table',
    method:"POST",
    
  })
}
// 收款列表里的下载
function downloadReceipt(data){
  return axios({
    url:'mobileadmin/receipt_money_form',
    method:"POST",
    data
    
  })
}
// 支付凭证
function paymentVoucher(data){
  return axios({
    url:'mobileadmin/receipt_money_table_pay',
    method:"POST",
    data
    
  })
}

// 应收账款汇总表
function getTable(data){
  return axios({
    url:'mobileadmin/get_table',
    method:"POST",
    data
    
  })
}


//    基础表
function basicTable(data){
  return axios({
    url:'mobileadmin/basic_table',
    method:"POST",
    data:data||null
  })
}
// 基础表下载
function basicDownload(){
  return axios({
    url:'mobileadmin/basic_table_download',
    method:"POST",
    
  })
}
// 应收款下载
function getTableDown(data){
  return axios({
    url:'mobileadmin/get_table_down',
    method:"POST",
    data
  })
}

// 基础表提交计算
function sendBasicTableCalculate(data){
  return axios({
    url:'mobileadmin/basic_table_calculate',
    method:"POST",
    data
  })
}

// 修改付款方式和公共付款方式
// 基础表提交计算
function getTableEdit(data){
  return axios({
    url:'mobileadmin/get_table_edit',
    method:"POST",
    data
  })
}
// basicDownload

export{
  receiptMoneyTable,
  downloadReceipt,
  paymentVoucher,
  getTable,
  basicTable,
  basicDownload,
  getTableDown,
  sendBasicTableCalculate,
  getTableEdit
}